<!doctype html><html><head><title>rb.auth.AuthManager</title><link href="../../stylesheet.css" rel="stylesheet" type="text/css"></head><body><a href="../../index.html">Home</a><h1>Class rb.auth.AuthManager</h1><p>An AuthManager implementation that can talk to the Relieved back-end.</p>extends <a href="../../relief/auth/AuthManager.html">relief.auth.AuthManager</a><table class="method-list"><tr><td colspan="2"><strong>Instance Method Summary</strong></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>dispatchUser_(?rb.auth.User user)</code><br><p class="method-description">Dispatches the new user to any listeners.</p></td></tr><tr><td class="method-list-cell method-access method-protected"></td><td class="method-list-cell method-cell"><code>disposeInternal()</code><br><p class="method-description">Unattach listeners from this object.  Classes that extend EventTarget may
need to override this method in order to remove references to DOM Elements
and additional listeners, it should be something like this:
<pre>
MyClass.prototype.disposeInternal = function() {
MyClass.superClass_.disposeInternal.call(this);
// Dispose logic for MyClass
};
</pre></p></td></tr><tr><td class="method-list-cell method-access method-public"></td><td class="method-list-cell method-cell"><code>getCurrentUser(function ((null|relief.auth.User)): ? callback)</code><br><p class="method-description">Takes a callback and calls it with an appropriate rb.auth.User object.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>gotUser_(?rb.auth.User user)</code><br><p class="method-description">Callback called when the server check returns.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>onEnterPress_(?goog.events.BrowserEvent e)</code><br><p class="method-description">Event handler for pressing the Enter key while in the "display name" input
box.  Because of the button order, "Be Anonymous" is the submit button
that gets "clicked" when the user presses "Enter" in the input box.  Catch
the Enter keypress, and set a flag so the "Be Anonymous" click handler
ignores the click.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>onSubmit_(?goog.events.BrowserEvent e)</code><br><p class="method-description">Handles the registration form's onSubmit event.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>registerUser_(?rb.auth.User user)</code><br><p class="method-description">The user that just logged in has not registered here before.  Get their name.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>setAnonymous_(?goog.events.BrowserEvent e)</code><br><p class="method-description">Set the user's display name to be "Anonymous".  The "Be Anonymous" button is
also a Submit button, but this event will fire first.  Set the name and let
the onSubmit method handlet he rest.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>updateUser_(string name)</code><br><p class="method-description">Send a request to the server to store the user's display name.</p></td></tr></table></body></html>